#ifndef DW_GRAPHICS_OPENGL_210_BACKEND_INL
#	define DW_GRAPHICS_OPENGL_210_BACKEND_INL

#if (DW_GRAPHICS_BACKEND != DW_GRAPHICS_BACKEND_OPENGL_210)
#	error "Invalid included file"
#endif // (DW_GRAPHICS_BACKEND != DW_GRAPHICS_BACKEND_OPENGL_210)

namespace dw {
	namespace graphics {
		namespace details {

inline Backend::Backend()
:	m_glewIsInitialized(false)
,	m_mainContext(NULL)
,	m_context(NULL)
,	m_renderTarget(NULL)
{
}

inline Backend::~Backend()
{
	dwAssert(m_mainContext == NULL, "Backend has not been terminated");
}

inline bool Backend::isValid() const
{
	return m_mainContext != NULL && m_mainContext->isValid();
}

		} // namespace details
	} // namespace graphics
} // namespace dw

#endif // !DW_GRAPHICS_OPENGL_210_BACKEND_INL
